//
//  ViewControllerOfConversation.m
//  RunningMan
//
//  Created by 宗大丞 on 16/5/23.
//  Copyright © 2016年 JohnnyB. All rights reserved.
//

#import "ViewControllerOfConversation.h"
#import "ViewControllerOfRobot.h"

@interface ViewControllerOfConversation ()

@end

@implementation ViewControllerOfConversation

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    [self configure];
}

- (void)configure {
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"Unknown-jiqiren"] style:UIBarButtonItemStylePlain target:self action:@selector(handleRobot:)];
}

- (void)handleRobot:(UIBarButtonItem *)button {
    
    ViewControllerOfRobot *robot = [[ViewControllerOfRobot alloc] initWithConversationType:ConversationType_CUSTOMERSERVICE targetId:@"KEFU146397345867540"];
    robot.title = @"Robot";
    robot.hidesBottomBarWhenPushed = YES;
    
    [self.navigationController pushViewController:robot animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
